import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloFromVux'
import Index from '../view/'
import NotFound from '../view/notfound'
// 登陆&注册
import Login from '../view/account/login'
import Agreement from '../view/account/agreement'
import Forgot from '../view/account/forgot'
import Forgot2 from '../view/account/forgot_2'
import Forgot3 from '../view/account/forgot_3'
import Resgister from '../view/account/register'
import Resgister2 from '../view/account/register_2'
import Resgister3 from '../view/account/register_3'
import Resgister4 from '../view/account/register_4'
// 交易
import Transaction from '../view/transaction/'
// 个人中心
import My from '../view/personal/'
import PersonalInfo from '../view/personal/personalInfo'
import editNickname from '../view/personal/editNickName'
import validateFir from '../view/personal/validateFir'
import validateSec from '../view/personal/validateSec'
import myMine from '../view/personal/myMine'
import tradeList from '../view/personal/tradelist'
import netCoin from '../view/personal/netcoin'
import serviceCenter from '../view/personal/serviceCenter'
import accountCenter from '../view/personal/accountCenter'
import editAccount from '../view/personal/editAccount'
import payFirst from '../view/personal/payFirst'
import payCode from '../view/personal/payCode'
import payThird from '../view/personal/payThird'
import moneyAccount from '../view/personal/moneyAccount'
import payAccount from '../view/personal/payAccount'
import myCode from '../view/personal/myCode'
import myTeam from '../view/personal/myTeam'
import qqQun from '../view/personal/qqQun'
import saftyCenter from '../view/personal/saftyCenter'
import editPwd from '../view/personal/editPwd'
import editTradePwd from '../view/personal/editTradePwd'
import editPhone from '../view/personal/editPhone'
import NoticeList from '../view/personal/noticeList'
import Ondev from '../view/personal/ondev'
// 公告
import Notice from '../view/notice/'
import NoticeDetail from '../view/notice/detail'
// 资讯
import News from '../view/news/'
import NewsDetail from '../view/news/detail'
// 认筹
import Recognize from '../view/recognize'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: Index
    },
    {
      path: '/login',
      name: '注册',
      component: Login
    },
    {
      path: '/agreement',
      name: '用户协议及隐私政策',
      component: Agreement
    },
    {
      path: '/forgot',
      name: '忘记密码',
      component: Forgot
    },
    {
      path: '/forgot2',
      name: '忘记密码2',
      component: Forgot2
    },
    {
      path: '/forgot3',
      name: '忘记密码3',
      component: Forgot3
    },
    {
      path: '/register',
      name: '手机注册',
      component: Resgister
    },
    {
      path: '/register2',
      name: '手机注册2',
      component: Resgister2
    },
    {
      path: '/register3',
      name: '手机注册3',
      component: Resgister3
    },
    {
      path: '/register4',
      name: '手机注册4',
      component: Resgister4
    },
    {
      path: '/recognize',
      name: '认筹',
      component: Recognize
    },
    {
      path: '/transaction',
      name: '交易',
      component: Transaction
    },
    {
      path: '/notice',
      name: '公告',
      component: Notice
    },
    {
      path: '/noticedetail',
      name: '公告详情',
      component: NoticeDetail
    },
    {
      path: '/news',
      name: '资讯',
      component: News
    },
    {
      path: '/newsdetail',
      name: '资讯详情',
      component: NewsDetail
    },
    {
      path: '/personal',
      name: '个人中心',
      component: My
    },
    {
      path: '/personalInfo',
      name: '个人资料',
      component: PersonalInfo
    },
    {
      path: '/editnickname',
      name: '修改昵称',
      component: editNickname
    },
    {
      path: '/validatefir',
      name: '实名认证',
      component: validateFir
    },
    {
      path: '/validatesec',
      name: '上传照片',
      component: validateSec
    },
    {
      path: '/mymine',
      name: '我的矿机',
      component: myMine
    },
    {
      path: '/tradelist',
      name: '交易记录',
      component: tradeList
    },
    {
      path: '/netcoin',
      name: '云币明细',
      component: netCoin
    },
    {
      path: '/servicecenter',
      name: '客服中心',
      component: serviceCenter
    },
    {
      path: '/account',
      name: '账户中心',
      component: accountCenter
    },
    {
      path: '/payaccount',
      name: '支付信息',
      component: payAccount
    },
    {
      path: '/editaccount',
      name: '账号修改',
      component: editAccount
    },
    {
      path: '/moneyaccount',
      name: '资金账户',
      component: moneyAccount
    },
    {
      path: '/payfirst',
      name: '账户充值',
      component: payFirst
    },
    {
      path: '/paycode',
      name: '支付二维码',
      component: payCode
    },
    {
      path: '/paythird',
      name: '支付完成',
      component: payThird
    },
    {
      path: '/mycode',
      name: '我的推荐码',
      component: myCode
    },
    {
      path: '/myteam',
      name: '我的团队',
      component: myTeam
    },
    {
      path: '/qqqun',
      name: '官方QQ群',
      component: qqQun
    },
    {
      path: '/safty',
      name: '安全中心',
      component: saftyCenter
    },
    {
      path: '/editphone',
      name: '修改手机号',
      component: editPhone
    },
    {
      path: '/editpwd',
      name: '修改密码',
      component: editPwd
    },
    {
      path: '/edittradepwd',
      name: '修改交易密码',
      component: editTradePwd
    },
    {
      path: '/noticelist',
      name: '公告中心',
      component: NoticeList
    },
    {
      path: '/ondev',
      name: '开发中',
      component: Ondev
    },
    {
      path: '*',
      name: '404',
      component: NotFound
    }
  ]
})
